#include "IntSet.h"

class IntBitSet: public IntSet, IntIterator{
	private:
		bool *buffer; //mapa de bits
		int len, minvalue, maxvalue, iptr;

		void IntBitSet::moveIPtr();

	public:
		IntBitSet( int, int);
		~IntBitSet();
		
		bool contains( int );
		void add( int );
		void rem( int );

		IntIterator* newIterator();
		bool hasNext();
		int next();		
};